From 0a1a01ef75a1c7eaefca94eb8b4b238eb068fa4e Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 12 Mar 2004 06:18:01 +0000 Subject: [PATCH] Fix D104 for GPS III[+] dropping all but first char from waypoint comment by explictly setting visibilty and toupper-ing the string. Tested on III+ by byonke at sbcglobal.net. --- gpsbabel/jeeps/gpsapp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gpsbabel/jeeps/gpsapp.c b/gpsbabel/jeeps/gpsapp.c index f75b767de..e198c842f 100644 --- a/gpsbabel/jeeps/gpsapp.c +++ b/gpsbabel/jeeps/gpsapp.c @@ -1669,7 +1669,11 @@ static void GPS_D104_Send(UC *data, GPS_PWay way, int32 *len) p+=sizeof(int32); GPS_Util_Put_Uint(p,0); p+=sizeof(int32); - for(i=0;i<40;++i) *p++ = way->cmnt[i]; + /* byonke confirms that sending lower case comment data to a III+ + * results in the comment being truncated there. So we uppercase + * the entire comment. + */ + for(i=0;i<40;++i) *p++ = toupper(way->cmnt[i]); GPS_Util_Put_Float(p,way->dst); p+= sizeof(float); @@ -1677,7 +1681,7 @@ static void GPS_D104_Send(UC *data, GPS_PWay way, int32 *len) GPS_Util_Put_Short(p,way->smbl); p+=sizeof(int16); - *p = way->dspl; + *p = 3; /* display symbol with waypoint name */ *len = 65; -- 2.30.2